package com.emptyMe.user.service;

import com.emptyMe.basic.utils.AjaxResult;
import com.emptyMe.user.domain.User;
import com.emptyMe.user.domain.UserDTO;
import com.emptyMe.user.query.UserQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IUserService {
    AjaxResult getCode(String phone);

    AjaxResult registerByPhone(UserQuery query);

    AjaxResult logout();

    AjaxResult findByUsername(String username);

    UserDTO login(UserQuery query);

    void edit(User user);

    void joinUs(User user);

    PageInfo<User> findUser(UserQuery query);

    void delUser(List<Long> ids);



}
